import re
import requests

content = requests.get("https://book.douban.com").text
#pattern = re.compile('<li*?cover*?href="(.*?)".*?title="(.*?)".*?more-meta.*?author">(.*?)</span>.*?year">(.*?)</span>.*?</li>', re.S)
pattern = re.compile('<div.*?more-meta.*?title">(.*?)</h4>.*?author">(.*?)</span>.*?year">(.*?)</span>.*?publisher">(.*?)</span>', re.S)
results = re.findall(pattern, content)
#results2 = re.findall('<div.*?cover.*?href.*?title="(.*?)".*?</div>', content, re.S)

print(results)
